const routes = [  {
  path: '/',
  component: () => import('pages/Login.vue') // 登录页面作为独立页面
},
  {
    path: '/',
    component: () => import('layouts/MainLayout.vue'),
    children: [
      { path: '', component: () => import('pages/Index.vue') },
      { path: '/index', component: () => import('pages/Index.vue') },
      { path: '/dataImport', component: () => import('pages/DataImportPage') },
      { path: '/modelpredict', component: () => import('pages/ModelPredict') },
      { path: '/staticana', component: () => import('pages/StatisticsPage') },
      { path: '/esImport', component: () => import('pages/esImport') },
      // { path: '/esAna', component: () => import('pages/esAna') },
      { path: '/esAna', component: () => import('pages/EsAnaCon'),meta:{keepAlive:true} },
      { path: '/esAna-gis', component: () => import('pages/EsAnaCon-gis'),meta:{keepAlive:true} },
      { path: '/esAna-gis-query', component: () => import('pages/EsAnaCon-gis-query'),meta:{keepAlive:true} },
// ,meta:{keepAlive:true}
      { path: '/gis', component: () => import('pages/Gis') },
      { path: '/known', component: () => import('pages/knownpage') },
      { path: '/gas', component: () => import('pages/gasMap') },
      { path: '/faultResultQuery', component: () => import('pages/FaultResultQuery') },
        { 
        path: '/fault-recommendation', 
        component: () => import('pages/FaultRecommendation/index.vue')
      },
    ]
  },

  // Always leave this as last one,
  // but you can also remove it
  {
    path: '*',
    component: () => import('pages/Error404.vue')
  }
]

export default routes
